package com.book.shop.controller;

import com.book.shop.model.Order;
import lombok.Data;

import java.io.Serializable;
import java.util.List;
@Data
public class BaseResult implements Serializable {
    private int State;
    private String msg;
    private List<Order> order;

    public BaseResult(int state, String msg, List<Order> order) {
        State = state;
        this.msg = msg;
        this.order = order;
    }

    @Override
    public String toString() {
        return "BaseResult{" +
                "State=" + State +
                ", msg='" + msg + '\'' +
                ", order=" + order +
                '}';
    }
}
